define({ "api": [
  {
    "type": "get",
    "url": "?s=api/user/get&row=数量",
    "title": "获取用户列表",
    "sampleRequest": [
      {
        "url": "http://localhost/api/server/index.php?s=api/user/get"
      }
    ],
    "permission": [
      {
        "name": "无"
      }
    ],
    "name": "get",
    "group": "user",
    "version": "1.0.0",
    "description": "<p>api   获取用户列表</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "row",
            "description": "<p>条数    (必填).</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"valid\": 1,\n  \"data\": [\n      {\n         \"id: \"学生编号\",\n         \"username\": \"学生名称\",\n      }\n  ]\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 404 Not Found\n {\n     \"valid\": 0,\n     \"message\":\"错误信息\"\n }",
          "type": "json"
        }
      ]
    },
    "filename": "app/api/controller/User.php",
    "groupTitle": "user"
  },
  {
    "type": "get",
    "url": "?s=api/user/getByName&username=用户名",
    "title": "根据用户名获取用户信息",
    "sampleRequest": [
      {
        "url": "http://localhost/api/server/index.php?s=api/user/getByName"
      }
    ],
    "permission": [
      {
        "name": "无"
      }
    ],
    "name": "getByName",
    "group": "user",
    "version": "1.0.0",
    "description": "<p>api   根据用户名获取用户信息</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>用户名    (必填).</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"valid\": 1,\n  \"data\": [\n      {\n         \"id: \"学生编号\",\n         \"username\": \"学生名称\",\n      }\n  ]\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 404 Not Found\n {\n     \"valid\": 0,\n     \"message\":\"错误信息\"\n }",
          "type": "json"
        }
      ]
    },
    "filename": "app/api/controller/User.php",
    "groupTitle": "user"
  },
  {
    "type": "get",
    "url": "?s=api/user/getThree&three=3",
    "title": "获取前三条用户名数据",
    "sampleRequest": [
      {
        "url": "http://localhost/api/server/index.php?s=api/user/getThree"
      }
    ],
    "permission": [
      {
        "name": "无"
      }
    ],
    "name": "getThree",
    "group": "user",
    "version": "1.0.0",
    "description": "<p>api   获取三条用户数据</p>",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"valid\": 1,\n  \"data\": [\n      {\n         \"id: \"学生编号\",\n         \"username\": \"学生名称\",\n      }\n  ]\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 404 Not Found\n {\n     \"valid\": 0,\n     \"message\":\"错误信息\"\n }",
          "type": "json"
        }
      ]
    },
    "filename": "app/api/controller/User.php",
    "groupTitle": "user"
  },
  {
    "type": "get",
    "url": "?s=api/user/one&id=用户编号",
    "title": "获取一个用户",
    "sampleRequest": [
      {
        "url": "http://localhost/api/server/index.php?s=api/user/one"
      }
    ],
    "permission": [
      {
        "name": "无"
      }
    ],
    "name": "one",
    "group": "user",
    "version": "1.0.0",
    "description": "<p>api   获取一个用户</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "id",
            "description": "<p>学生编号    (必填).</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"valid\": 1,\n  \"data\": [\n      {\n         \"id: \"学生编号\",\n         \"username\": \"学生名称\",\n      }\n  ]\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 404 Not Found\n {\n     \"valid\": 0,\n     \"message\":\"错误信息\"\n }",
          "type": "json"
        }
      ]
    },
    "filename": "app/api/controller/User.php",
    "groupTitle": "user"
  }
] });
